<template>
<div class="ceshi">
    <div class="dataAnalysisTop">
        <el-tabs v-model="currentTab" @tab-click="handleClick">
          <el-tab-pane label="数据分析" index=0 ></el-tab-pane>
<!--          <el-tab-pane label="对比"  index=1></el-tab-pane>-->
        </el-tabs>
    </div>
</div>

</template>

<script>


 export default {
   components: {

   },
   data () {
     return {
        currentTab:0
     }
   },
   mounted() {
   },
   methods: {
    handleClick(tab,event){
      this.currentTab = tab.index
      this.$emit('fromSon',tab.index)
    },
   },
 }
</script>

<style scoped lang='scss' >
.ceshi{
  position: relative;
  width: 100%;
  height: 100%;
}
.dataAnalysisTop{
  position: fixed;
  background-color: white;
  width: 100%;
  margin-left: 0px;
  z-index: 98;
  padding-left: 10px;
}
.dataAnalysisContent{
  padding-top: 50px;
}
</style>
